namespace SO{
    [CreateAssetMenu(fileName = "NewFile", menuName = "游戏配置/3_宝物配置/创建宝物", order = 0)]
    public class TreasureItemSO : BaseTriggerItemSO {

        [Button("添加到人物身上")]
        public void 添加到人物身上() {
            if (Application.isPlaying) {
                GameLayer.Instance.PlayerController.AddFightTreasure(this.itemId);

            }
        }

    }
}